import { Application } from "egg";

export default (app: Application) => {
    const { router, controller } = app;
    // const checktoken = app.middleware.checktoken();
    router.post("/api/type/:id", controller.ctrlType.post);
    router.get("/api/type", controller.ctrlType.get);
    router.post("/api/type/del/:id", controller.ctrlType.del);
};
